import axios from 'axios'

async function login(user) {
    const resp = await axios.post('/api/user/login', user)
    return resp.data
}

async function register(user) {
    const resp = await axios.post('/api/user/register', user)
    return resp.data
}

export default {
    login, register
}